<script>
export default{
    name:"Person",
    data(){
        return {
            msg:"我来自温州",
            age:26
        }
    },
    methods:{
        add:function(){
            this.age++
        }
    }
}
</script>
<template>
<h1>我是子主键</h1>
<h2>{{ msg }}{{ age }}</h2>
<button v-on:click="add">增加</button>
</template>
<style scoped>
</style>
